package cn.sonui.onlinechat.bean;

import java.util.List;

public class MessageInfo {
    //发送者
    private Integer sender;
    //接收者
    private Integer recipient;
    //消息内容
    private List<MessageContent> message;
    //是否私有消息（私聊） True:私聊 False:群聊
    private boolean isPrivate;

    public MessageInfo(){}
    public MessageInfo(Integer sender, Integer recipient, List<MessageContent> message, boolean isPrivate){
        this.sender = sender;
        this.recipient = recipient;
        this.message = message;
        this.isPrivate = isPrivate;
    }

    public Integer getSender() {
        return sender;
    }

    public void setSender(Integer sender) {
        this.sender = sender;
    }

    public List<MessageContent> getMessage() {
        return message;
    }

    public void setMessage(List<MessageContent> message) {
        this.message = message;
    }

    public Integer getRecipient() {
        return recipient;
    }

    public void setRecipient(Integer recipient) {
        this.recipient = recipient;
    }

    public boolean getType() {
        return isPrivate;
    }

    public void setType(boolean isPrivate) {
        this.isPrivate = isPrivate;
    }
}
